pkgname=kcrash
pkgver=5.36.0
pkgrel=1
pkgdesc='Support for application crash analysis and bug report from apps'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="kcoreaddons kwindowsystem"
makedepends="extra-cmake-modules mesa-dev doxygen qt5-qttools-dev kcoreaddons kwindowsystem-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

prepare() {
	mkdir $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DKDE_INSTALL_LIBEXECDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="63d584764a41f7cc663770cb4f13ff7a5f66602f894d8166d3de0de85d29951225b72a92ddd9879354f95984fcb9e99182a9c48e49e54ceeb86bdfeecf927478  kcrash-5.36.0.tar.xz"
